<template>
	<view>
		<view class="">
			<view class="banmi_flex a-c p-10 bb">
				<view class="f-16" style="color: #A9A9A9;width: 100px;">账号:</view>
				<view class="f-16" style="width: 200px;">
					<uni-easyinput v-model="find.account" disabled placeholder="账号">
					</uni-easyinput>
				</view>
			</view>
			<view class="banmi_flex a-c p-10 bb">
				<view class="f-16" style="color: #A9A9A9;width: 100px;">旧密码:</view>
				<view class="f-16" style="width: 200px;">
					<uni-easyinput v-model="find.old_pwa" placeholder="填写旧密码" type="password">
					</uni-easyinput>
				</view>
			</view>
			<view class="banmi_flex a-c p-10 bb">
				<view class="f-16" style="color: #A9A9A9;width: 100px;">新密码:</view>
				<view class="f-16" style="width: 200px;">
					<uni-easyinput v-model="find.new_pwa" placeholder="填写新密码" type="password">
					</uni-easyinput>
				</view>
			</view>
			<view class="banmi_flex a-c p-10 bb">
				<view class="f-16" style="color: #A9A9A9;width: 100px;">确认新密码:</view>
				<view class="f-16" style="width: 200px;">
					<uni-easyinput v-model="find.news_pwa" placeholder="填写新密码" type="password">
					</uni-easyinput>
				</view>
			</view>
			<view class="banmi_flex j-c" style="padding-top: 40rpx;">
				<view @click="on_set_platform" class="f-16 banmi_flex a-c j-c b_y cff  "
					style="background-color: #1E90FF;width: 80%;height: 40px;border-radius: 25px;">
					保存
				</view>
			</view>



		</view>


	</view>
</template>

<script>
	export default {
		props: {

			money: {
				type: Number,
				default: 1
			},

			version: {
				type: String,
				default: ''
			},

			list_goods: {
				type: Array,
				default: function() {
					return [] //数据
				}
			}
		},
		data() {
			return {
				codetime: 8,
				find: {},
				name: '',
				keya: ''
			};
		},
		mounted() {
			this.init();
		},
		methods: {
			async on_set_platform() {
				const ret = await this.Banmikeji.Settings_set_admin_pwa(this.find);
				uni.showToast({
					title: ret.msg,
					icon: 'none'
				})
			},
			async init() {
				const ret = await this.Banmikeji.Settings_set_admin_find({});
				this.find = ret.data.find
			}
		}
	}
</script>

<style lang="scss">


</style>